import socket

if __name__ == '__main__':
    tcp_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    tcp_socket.connect(('ntlias-stu.boxuegu.com', 80))

    http_data = 'GET / HTTP/1.1 Connection: keep-alive\r\n\r\n'

    tcp_socket.send(http_data.encode())

    result = tcp_socket.recv(1024)
    print(result)

    tcp_socket.close()

